package com.zxt.content.copywriting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxt.content.copywriting.model.PrivateCopywriting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zxt
 */
@Mapper
public interface PrivateCopywritingMapper extends BaseMapper<PrivateCopywriting> {

    /**
     * 随机获取一条私有文案
     *
     * @param userId
     * @return
     */
    PrivateCopywriting randGetOneByUserId(@Param("userId") Long userId);
}
